<?php
	session_start();
	require('../core/config.php');
	if(isset($_SESSION['islogin'])){
		$smarty->assign('username',$_SESSION['username']);
		$smarty->assign('version',$_config['version']);
		$smarty->assign('articlesNum',getArticleNum());
		$smarty->assign('kindsNum',getKindNum());
		$smarty->assign('remarkNum',getRemarkNum());
		$smarty->assign('pageView',getPageView());
		$smarty->assign('style',getStyleName());
		$smarty->assign('userNum',getUserNum());
		$smarty->assign('OS',PHP_OS);
		$smarty->assign('SERVER_SOFTWARE',$_SERVER['SERVER_SOFTWARE']);
		$smarty->assign('mysqlVersion',getMysqlVertion());
		$smarty->assign('maxUpload',ini_get('upload_max_filesize'));
		$smarty->assign('mysqlSize',getMysqlSize());
		$smarty->display($_config['root']."admin/html/default.html");
	}else{
		include('login.php');
	}
?>